package com.zytlifeservice.repository.pay;

import com.zytlifeservice.domain.pay.MobileRechargeOrder;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by MJS on 2017/5/26.
 */
public interface MobileRechargeOrderRepository extends JpaRepository<MobileRechargeOrder, Long> {
    public MobileRechargeOrder findByOutTradeNo(String outTradeNo);

    public MobileRechargeOrder findByOutTradeNoAndUserId(String outTradeNo, Long userId);

    public List<MobileRechargeOrder> findAllByUserId(Long userId);

}
